package com.hui.qiniucloud.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * 用户密码修改请求DTO
 */
@Data
@Schema(description = "用户密码修改请求")
public class UserPasswordUpdateRequest {

    @Schema(description = "当前密码", example = "oldPassword123", required = true)
    @NotBlank(message = "当前密码不能为空")
    private String oldPassword;

    @Schema(description = "新密码", example = "newPassword123", required = true)
    @NotBlank(message = "新密码不能为空")
    @Size(min = 6, max = 20, message = "新密码长度必须在6-20个字符之间")
    private String newPassword;

    @Schema(description = "确认新密码", example = "newPassword123", required = true)
    @NotBlank(message = "确认新密码不能为空")
    private String confirmPassword;
}